#include <bits/stdc++.h>
using namespace std;
int main() {
    int n;
    cin >> n;
    if (n % 400 == 0)
        puts("yes");
    else if (n % 4 == 0 && n % 100 != 0)
        puts("yes");
    else
        puts("no");
}